package edu.nf.ch06.superfactory;

import edu.nf.ch06.product.*;

/**
 * @author CSY
 * @date 2025 - 04 - 15
 * 超级工厂
 */
public class Main {
    public static void main(String[] args) {
        Phone phone = SuperFactory.create(IPhone.class);
        Pad pad = SuperFactory.create(IPad.class);

        phone.call();
        pad.play();

        Phone miPhone = TeacherSuperFactory.create("edu.nf.ch06.product.MiPhone");
        miPhone.call();
    }
}
